package com.example.ruleenginedrools.controller;

import com.example.ruleenginedrools.entity.HistoryUser;
import com.example.ruleenginedrools.entity.UserDto;
import com.example.ruleenginedrools.rule.RuleExecutor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;



/**
 * @author zhangyunzhe
 */
@RestController
public class RuleController {
    @Autowired
    private RuleExecutor ruleRunner;




    @GetMapping("template")
//    @DS("drools")
    public void template(){
        UserDto userDto = new UserDto(null,"zyz",null);
        ruleRunner.judge("UserDto",userDto);
        System.out.println(userDto);
    }
}
